﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ExamRepositoryWebAPI.Models;

namespace ExamRepositoryWebAPI
{
    public class AppDbContext:DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
        {
            Database.EnsureCreated();
        }

        public DbSet<SingleChoiceQuestion> SingleChoiceQuestion { get; set; }

        public DbSet<MultiChoiceQuestion> MultiChoiceQuestion { get; set; }

        public DbSet<EaseAnswerQuestion> EaseAnswerQuestion { get; set; }

        public DbSet<JudgementQuestion> JudgementQuestion { get; set; }
    }
}
